import { LAYOUT } from '@/router/constant';

export default {
  path: '/member',
  name: 'Member',
  component: LAYOUT,

  meta: {
    title: '客户',
    hideBreadcrumb: true,
  },
  children: [
    {
      path: 'list',
      name: 'MemberList',
      component: () => import('@/views/member/list.vue'),
      meta: {
        title: '客户列表',
        showNav: true,
      },

      children: [
        {
          path: 'detail',
          name: 'MemberDetail',
          component: () => import('@/views/member/detail.vue'),
          meta: {
            title: '客户详情',
          },
        },

        {
          path: 'card-upgrade',
          name: 'CardUpgrade',
          component: () => import('@/views/cashier/card-upgrade.vue'),
          meta: {
            title: '卡升级',
          },
        },
      ],
    },
  ],
};
